package offer;

public class offer_0017 {
    public int[] printNumbers(int n) {
        int end=1;
        for(int i=0;i<n;++i){
            end*=10;
        }
        int[] result=new int[end-1];
        for(int i=1;i<end;++i){
            result[i-1]=i;
        }
        return result;
    }
}
